import SM from "sm-crypto"

const cipherMode = 1
const publicKey = '0484C7466D950E120E5ECE5DD85D0C90EAA85081A3A2BD7C57AE6DC822EFCCBD66620C67B0103FC8DD280E36C3B282977B722AAEC3C56518EDCEBAFB72C5A05312'

export function encrypt(text) {
	let encryptData = SM.sm2.doEncrypt(text, publicKey, cipherMode) // 加密结果
	return encryptData
}